package dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import module.CusProgress;
import dao.ABSBasicDAO;
import domain.vo.queryObject;

public class CusProgressDAOImpl  extends ABSBasicDAO<CusProgress>{

	/**
	 * 构造方法
	 * @param sqlMapClient
	 */
	public  CusProgressDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
	}
	
	
	
	
	/* (非 Javadoc) 
	* <p>Title: getObjectByQueryObject</p> 
	* <p>Description: </p> 
	* @param queryObject
	* @return
	* @throws SQLException 
	* @see dao.ABSBasicDAO#getObjectByQueryObject(domain.vo.queryObject) 
	*/
	@Override
	public List<CusProgress> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		return (List<CusProgress>)sqlMapClient.queryForList("CusProgress.getObjectByQueryObject", queryObject);
	}




	/* (非 Javadoc) 
	* <p>Title: countByQueryObject</p> 
	* <p>Description: </p> 
	* @param queryObject
	* @return
	* @throws SQLException 
	* @see dao.ABSBasicDAO#countByQueryObject(domain.vo.queryObject) 
	*/
	@Override
	public int countByQueryObject(queryObject queryObject) throws SQLException {
		return(Integer)sqlMapClient.queryForObject("CusProgress.countByQueryObject",queryObject);
	}




	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getAll()
	 */
	@Override
	public List<CusProgress> getAll() throws SQLException {
		return sqlMapClient.queryForList("CusProgress.getAll");
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getById(java.lang.String)
	 */
	@Override
	public CusProgress getById(String id) throws SQLException {
		return (CusProgress)sqlMapClient.queryForList("CusProgress.getById", id);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getByPK()
	 */
	@Override
	public CusProgress getByPK() {
		// TODO Auto-generated method stub
		return super.getByPK();
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#insertT(java.lang.Object)
	 */
	@Override
	public void insertT(CusProgress t) throws SQLException {
		sqlMapClient.insert("CusProgress.insertCusProgressInfo", t);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#updateT(java.lang.Object)
	 */
	@Override
	public void updateT(CusProgress t) throws SQLException {
		super.updateT(t);
	}

}
